package com.hq.http;

import junit.framework.TestCase;

import java.io.IOException;
import java.util.List;

public class IhttpApiTest extends TestCase {

    public void testPagVideo() throws IOException {
        HttpClient http=new HttpClient();
       // String uir253="http://192.168.2.253:81/videoMessage/index";
        IhttpApi api = http.createApi(IhttpApi.class, "http://192.168.2.253:81/");

        Result r = api.pagVideo(5,200).execute().body();
        List<Records> re = r.getData().getRecords();
        for (Records record : re) {
            System.out.println(record.getName());
        }
        System.out.println(r.getMsg());
    }
}